package com.woniuxy.service;

import com.nimbusds.jose.JOSEException;
import com.woniuxy.entity.User;
import com.woniuxy.util.ResponseData;

import java.text.ParseException;

/**
 * @BelongsProject: pigTrotterStore
 * @BelongsPackage: com.woniuxy.service
 * @Author: Quan
 * @Date: 2025/3/10 17:57
 */
public interface UserService {
	/**
	 * @Description: 根据user信息进行登录
	 * @Param:
	 * @Author: Quan
	 * @Date: 2025/3/10
	*/
	ResponseData<?> login(User user) throws JOSEException;

	/**
	 * @Description: 根据用户id添加商品到购物车中
	 * @Param: foodId - [Integer]
	 * @Param: buyNum - [Integer]
	 * @Author: Quan
	 * @Date: 2025/3/13
	*/
	ResponseData<?> addCart(Integer foodId, Integer buyNum) throws ParseException;

	/**
	 * @Description: 根据用户id查询用户的订单和地址
	 * @Param:
	 * @Author: Quan
	 * @Date: 2025/3/13
	*/
	ResponseData<?> queryUserCartAndAddr() throws ParseException;
}
